<?php get_header(); ?>
<?php do_action('narato_before_primary'); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post();/*narato_post();*/ ?>

<!--Start Post-->
<div <?php post_class(); ?> data-meta='<?php narato_post_thumb_data(); ?>'>

<div class="p-head">
<h2 class="p-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link:','narato'); the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<small class="p-time">
<strong class="day"><?php the_time('j') ?></strong>
<strong class="month-year"><?php the_time('M') ?> <br /><?php the_time('Y') ?></strong>
</small></div>

<div class="p-con">
<?php 
	$post_settings = apply_filters('narato_post_settings', get_option("narato"));
	if($post_settings['post_content_length'] == 'f'): 
		the_content(__('More &gt;','narato'));
	elseif($post_settings['post_content_length'] == 'e'): 
		the_excerpt();
	else:
		$word_count = $post_settings['post_content_length'];
		// save original post content to variable
		$content = get_the_content();
		// prevent tags strip | it's a bug in WordPress!
		$content = apply_filters('the_content', $content);
		$content = str_replace(']]>', ']]&gt;', $content);
		// throw out trimmed: content to process, read more tag, post permalink, words length
		echo narato_trim_the_content($content, __('More &gt;','narato'), get_permalink($post->ID), $word_count);
	endif;
?>
<div class="clear"></div>
<?php wp_link_pages(); ?>
<?php edit_post_link(__('Edit','narato'), '<p>', '</p>'); ?>
</div>

<div class="p-det">
 <ul>
  <li class="p-det-cat">In: <?php the_category('|') ?></li>
  <?php if (function_exists('the_tags')) { ?> <?php the_tags('<li class="p-det-tag">Tags: ', ', ', '</li>'); ?> <?php } ?>
 </ul>
</div>

<div class="p-more">
 <ul>
  <li class="p-more-read"><a href="<?php the_permalink() ?>" title="Read More <?php the_title(); ?>">Read More </a></li>
  <li class="p-more-com"><?php comments_popup_link(__('No comments', 'narato'), '(1) Comment', '(%) Comments'); ?></li>
</ul>
</div>

</div>
<!--End Post-->

<?php //comments_template(); ?>
				
<?php endwhile; ?>
<?php include("nav.php"); ?>
<?php else : ?>

<?php include("404.php"); ?>
<?php endif; ?>

<?php do_action('narato_after_primary'); ?>

<?php get_footer(); ?>

